package com.xuhun.client.client;

import com.xuhun.client.entity.UserVO;
import feign.Headers;
import feign.Param;
import feign.RequestLine;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author: 徐欢
 * @date: 2021/9/6 20:05
 * @description:
 */
public interface UserClient {

    @RequestLine("GET /user/query?id={id}")
    UserVO queryUser(@Param("id")Integer id);

    @RequestLine("POST /user/save")
    @Headers({"Content-Type:application/json"})
    UserVO saveUser(@RequestBody UserVO userVO);
}
